package com.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * netsign
 * @author 
 */
public class Netsign implements Serializable {
    private Integer netid;

    private Integer netnumber;

    private Integer roomid;

    private Integer buyer;

    private Integer seller;

    private Boolean netstatus;

    private Date nettime;

    private static final long serialVersionUID = 1L;

    public Integer getNetid() {
        return netid;
    }

    public void setNetid(Integer netid) {
        this.netid = netid;
    }

    public Integer getNetnumber() {
        return netnumber;
    }

    public void setNetnumber(Integer netnumber) {
        this.netnumber = netnumber;
    }

    public Integer getRoomid() {
        return roomid;
    }

    public void setRoomid(Integer roomid) {
        this.roomid = roomid;
    }

    public Integer getBuyer() {
        return buyer;
    }

    public void setBuyer(Integer buyer) {
        this.buyer = buyer;
    }

    public Integer getSeller() {
        return seller;
    }

    public void setSeller(Integer seller) {
        this.seller = seller;
    }

    public Boolean getNetstatus() {
        return netstatus;
    }

    public void setNetstatus(Boolean netstatus) {
        this.netstatus = netstatus;
    }

    public Date getNettime() {
        return nettime;
    }

    public void setNettime(Date nettime) {
        this.nettime = nettime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Netsign other = (Netsign) that;
        return (this.getNetid() == null ? other.getNetid() == null : this.getNetid().equals(other.getNetid()))
            && (this.getNetnumber() == null ? other.getNetnumber() == null : this.getNetnumber().equals(other.getNetnumber()))
            && (this.getRoomid() == null ? other.getRoomid() == null : this.getRoomid().equals(other.getRoomid()))
            && (this.getBuyer() == null ? other.getBuyer() == null : this.getBuyer().equals(other.getBuyer()))
            && (this.getSeller() == null ? other.getSeller() == null : this.getSeller().equals(other.getSeller()))
            && (this.getNetstatus() == null ? other.getNetstatus() == null : this.getNetstatus().equals(other.getNetstatus()))
            && (this.getNettime() == null ? other.getNettime() == null : this.getNettime().equals(other.getNettime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getNetid() == null) ? 0 : getNetid().hashCode());
        result = prime * result + ((getNetnumber() == null) ? 0 : getNetnumber().hashCode());
        result = prime * result + ((getRoomid() == null) ? 0 : getRoomid().hashCode());
        result = prime * result + ((getBuyer() == null) ? 0 : getBuyer().hashCode());
        result = prime * result + ((getSeller() == null) ? 0 : getSeller().hashCode());
        result = prime * result + ((getNetstatus() == null) ? 0 : getNetstatus().hashCode());
        result = prime * result + ((getNettime() == null) ? 0 : getNettime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", netid=").append(netid);
        sb.append(", netnumber=").append(netnumber);
        sb.append(", roomid=").append(roomid);
        sb.append(", buyer=").append(buyer);
        sb.append(", seller=").append(seller);
        sb.append(", netstatus=").append(netstatus);
        sb.append(", nettime=").append(nettime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}